﻿using CL2CDebugTool.Logger;
using System.Configuration;
using System.Data;
using System.Windows;
using System.Windows.Interop;
using System.Windows.Media;

namespace CL2CDebugTool
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            Console.SetOut(LogTextWriter.GetInstance());

            string isSoftRenderMode = ConfigurationManager.AppSettings["IsSoftRenderMode"];
            if (bool.Parse(isSoftRenderMode))
            {
                RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
            }
        }
    }

}
